package com.learning.JavaSE.workExercise.module4.Task1;

import com.learning.JavaSE.module2.task5.StaticOuter;

/**
 *编写一个员工类   (1)属性: 姓名,年龄       如果年龄小于18龄大于150抛出年龄异常       如果姓名为null或者""抛出空异常
 */
public class EmployeeTest {
    public static void main(String[] args) {
        Employee e1 = new Employee();
        e1.setAge(118);
        e1.setName("a");
        Employee e2 = new Employee(null,19);
        System.out.println(e2);
    }
}

